<template>
  <div class="app-container">
    <el-drawer
      title="详情"
      :visible.sync="drawer"
      :direction="direction"
      :before-close="handleClose"
    >
      <el-table :data="tableData.list" border size="small">
        <el-table-column
          align="center"
          prop="id"
          label="id"
          width="50"
        ></el-table-column>
        <el-table-column
          align="center"
          prop="taskType"
          label="任务类型"
        ></el-table-column>
        <el-table-column align="center" prop="status" label="状态">
        </el-table-column>
        <el-table-column
          align="center"
          prop="createTime"
          label="创建时间"
        ></el-table-column>
        <el-table-column
          align="center"
          prop="updateTime"
          label="更新时间"
        ></el-table-column>
      </el-table>
    </el-drawer>
  </div>
</template>
<script>
import { getTaskQueryList } from "@/api/tax";
export default {
  name: "taxLogDetail",
  data() {
    return {
      drawer: false,
      direction: "rtl",
      tableData: {
        list: []
      }
    };
  },
  methods: {
    opendialog(v) {
      console.log(v);
      this.getList(v.id);
      this.drawer = true;
    },
    handleClose(done) {
      this.drawer = false;
    },
    getList(id) {
      getTaskQueryList(id).then(res => {
        this.tableData.list = res.data;
      });
    }
  }
};
</script>

<style scoped lang="scss"></style>
